package edu.nf.project.services.employeeAndCustomerInformation;

import edu.nf.project.entitys.entity.employeeAndCustomerInformation.convention.CustomerInfo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

/**
 * @Author gjh
 * @Date 2025/6/3
 * @Description:
 */
public interface CustomerInfoService {
    CustomerInfo findCustomerInfoPoint(String t_id);

    /**
     * 根据优惠券编号删除用户的优惠券
     * @param couponId
     */
    void deleteCoupon(Integer couponId);

    /**
     * 更新用户积分
     * @param customerId u_id
     * @param point 积分
     * @return
     */
    Boolean updateCouponCustomer(Integer customerId, Integer point);

    /**
     * 根据账户编号查找顾客信息
     * @param uId
     * @return
     */
    public CustomerInfo getCustomerByUserId(Integer uId);

    /**
     * 更新余额
     * @param uId 用户ID
     * @param surplus 新余额
     * @return 是否成功
     */
    Boolean updSurplus(Integer uId, Integer surplus);

    /**
     * 通过顾客ID查询用户ID
     * @param uId 顾客ID
     * @return 用户ID
     */
    Integer useCusIdFindUId(Integer uId);
}
